//
//  BaseRequest.m
//  HiveApp
//
//  Created by Zhu Arashmen on 9/17/12.
//  Copyright (c) 2012 HiveView. All rights reserved.
//

#import "EasyBuyRequest.h"

@interface EasyBuyRequest(){
    NSString *restUrl;
}

@end

@implementation EasyBuyRequest

-(id)initFocusRequest{
    if(self) self = [[EasyBuyRequest alloc]init ];
    restUrl = [NSString stringWithFormat:@"%@%@",InterfaceDomain,API_HOME_FOCUS];
    return self;
}

-(id)initRecommendRequest{
    if(self) self = [[EasyBuyRequest alloc]init ];
    restUrl = [NSString stringWithFormat:@"%@%@",InterfaceDomain,API_HOME_RECOMMEND];
    return self;
}

-(id)initCategoryRequest{
    if(self) self = [[EasyBuyRequest alloc]init ];
    restUrl = [NSString stringWithFormat:@"%@%@",InterfaceDomain,API_CATEGORY];
    return self;
}

-(id)initObjectDetailRequestWithObjectId:(int)contentId{
    if(self) self = [[EasyBuyRequest alloc]init ];
    restUrl = [NSString stringWithFormat:@"%@%@&contentid=%d",InterfaceDomain,API_OBJECT_DETAIL,contentId];
    NSLog(@"%@",restUrl);
    return self;
}

-(NSString *)executeToRest{
    return restUrl;
}


@end
